body {
    font-family: Arial, sans-serif;
    background-color: #1f2024;
    color: #fff;
    margin: 0;
    padding: 10px;
}

.tabs {
    width: 100%;
    margin: 0 auto;
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #ccc;
}

.tab-links li {
    margin: 0;
    border: 1px solid #ccc;
    border-bottom: none;
}

.tab-links li.active a {
    color: black;
}

.tab-links li a {
    color: white;
    padding: 10px 20px;
}

.tab-links li.active {
    background-color: #f0f0f0;
}

.tab-links a {
    text-decoration: none;
    color: #000;
    display: block;
}

.tab-content {
    position: relative;
    border: solid 1px white;
    overflow: hidden;
    height: 80vh;
}

.tab-content .tab {
    position: absolute;
    top: 0;
    width: calc(100% - 20px);
    height: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    display: none;
}

.tab-content .tab.active {
    display: block;
    left: 0;
}

.tab1-box {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    height: calc(100% - 20px);
}

.box {
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #000;
}

a {
    color: #5275ff;
    font-weight: bold;
}


/* 当屏幕宽度大于1024px时 */
@media (min-width: 1024px) {

    .box:nth-child(1) {
        width: 54%;
    }

    .box:nth-child(2),
    .box:nth-child(3) {
        width: 23%;
    }

    .box:nth-child(2) {
        min-width: 275px;
    }
}

/* 当屏幕宽度小于768px时 */
@media (max-width: 1024px) {
    .box:nth-child(1) {
        width: calc(100% - 320px);
    }

    .box:nth-child(2),
    .box:nth-child(3) {
        width: 160px;
    }

    .box:nth-child(2) {
        min-width: 215px;
    }

}